package com.unicloud.medical.oss.common;

import com.unicloud.medical.oss.common.model.request.DownloadObjectRequest;
import com.unicloud.medical.oss.common.model.request.DownloadObjectsRequest;
import com.unicloud.medical.oss.common.model.request.UploadObjectRequest;
import com.unicloud.medical.oss.common.model.request.UploadObjectsRequest;
import com.unisound.medical.common.model.dto.ResultDTO;
import org.springframework.http.ResponseEntity;

import java.util.List;

public interface ExtEndpoint extends Endpoint {
    ResponseEntity<byte[]> downloadObjectToBrowser(DownloadObjectRequest request);
    ResponseEntity<byte[]> downloadObjectsToBrowser(DownloadObjectsRequest request);

    ResultDTO<String> uploadObject(UploadObjectRequest request);
    ResultDTO<List<String>> uploadObjects(UploadObjectsRequest request);
}
